home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 151 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.1 KB

  1. Path: fido.asd.sgi.com!austern
  2. From: austern (Matt Austern)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Give operator. a chance
  5. Date: 26 Jan 1996 11:52:47 PST
  6. Organization: SGI
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <AUSTERN.96Jan26100328@isolde.mti.sgi.com>
  9. References: <3102AD11.1663@et.se> <4e8g4t$aa3@hermes.synopsys.com>
  10.     <4easfd$puc@news2.delphi.com>
  11. Reply-To: austern@mti.mti.sgi.com
  12. NNTP-Posting-Host: isolde.mti.sgi.com
  13. X-Original-Date: 26 Jan 1996 18:03:28 GMT
  14. In-Reply-To: jodle@bix.com's message of 26 Jan 1996 09:36:51 PST
  15. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  16.     iQBVAwUBMQkxd0y4NqrwXLNJAQFR3wIAiqiWQNlObOdo/lwENUzgcdCAplmGwtQz
  17.     UTD/D0i0NTGIsSMoIlV9y21kdm4jP/XGGu4W55/7wEHyydKNPDBRRQ==
  18.     =zpCS
  19. Originator: austern@isolde.mti.sgi.com
  20.  
  21. In article <4easfd$puc@news2.delphi.com> jodle@bix.com (jodle) writes:
  22.  
  23. > I'm afraid there is something I don't understand about this approach.  For
  24. > a nontrivial class, one in which you have a delegate pointer and other
  25. > members, how would you propose the compiler discriminate between
  26. > overloaded (delegative) member selection and the selection of actual
  27. > members of the class?  This would become an issue as soon as a member
  28. > function tries to access member data or a user of the class attempts to
  29. > form a call to a member function.
  30.  
  31. There's a long discussion of operator. in D&E, and some of it
  32. addresses precisely this point.  If you're interested in operator.,
  33. you may find that discussion useful: it may not change your opinion of
  34. whether or not operator. is a good idea, but it'll probably give you a
  35. clearer idea of some of the issues.
  36.  
  37. I've never had a strong opinion about operator. one way or the other
  38. (I have slightly different operator fetishes), but I do think it's
  39. quite clear that operator. will not make it into the C++ standard.
  40. Still, it's interesting from a theoretical and historical perspective.
  41.  
  42. -- 
  43. Matt Austern
  44. SGI: MTI Compilers Group
  45. austern@isolde.mti.sgi.com
  46. ---
  47. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  48.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  49.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  50.